package com.itcast.service;

import com.alibaba.dubbo.config.annotation.Service;
import com.itcast.dao.MemBerMobileMapper;
import com.itcast.health.pojo.Member;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author Wang
 * @version v1.0
 * @date 2019/12/1 9:44
 * @description TODO
 **/
@Service(interfaceClass = LoginMobileService.class)
@Transactional
public class LoginMobileServiceImpl implements LoginMobileService {
    @Autowired
    MemBerMobileMapper memBerMobileMapper;

    /**
     * 检查是否为会员
     */
    @Override
    public Member findByTelephone(String telephone) {
        return memBerMobileMapper.findByTelephone(telephone);
    }

    /**注册会员*/
    @Override
    public void add(Member member) {
      Integer id=  memBerMobileMapper.add(member);

    }
}